package thread.synchronization;

 class TestSnychronization {
	void printTable(int n){
		for(int i = 1;i<=5;i++){
			System.out.println(n*i);
			try{
				Thread.sleep(400);
			}catch(Exception e){
				System.out.println(e);
			}
		}
	}
	class MyThread1 extends Thread{  
		TestSnychronization t;  
		MyThread1(TestSnychronization t){  
		this.t=t;  
		}  
		public void run(){  
		t.printTable(5);  
		}  
		  
		}  
		class MyThread2 extends Thread{  
		TestSnychronization t;  
		MyThread2(TestSnychronization t){  
		this.t=t;  
		}  
		public void run(){  
		t.printTable(100);  
		}  
		}  
		
	

}
